package com.shchekoldin.juliet.json.entities.person;

import com.shchekoldin.juliet.json.annotation.ToJson;
import com.shchekoldin.juliet.json.annotation.ToJsonEntryPoint;
import com.shchekoldin.juliet.json.entities.ToJsonProfileType;

@ToJsonEntryPoint(profiles = { ToJsonProfileType.CHILDREN })
public class Man extends BasePerson {

    @ToJson(jsonName = "lady", profiles = { ToJsonProfileType.DEFAULT })
    private Woman wife;

    @ToJson(jsonName = "babies", profiles = { ToJsonProfileType.DEFAULT, ToJsonProfileType.CHILDREN })
    private IPerson children;

    public Woman getWife() {
        return wife;
    }

    public void setWife(Woman wife) {
        this.wife = wife;
    }

}
